package com.gupaoedu.mybatis.newlife;

import java.lang.reflect.Proxy;
import java.util.HashMap;
import java.util.Map;

public class WDTConfiguration {
   public    <T> T getMapper(Class clazz,   WDTSqlSession sqlSession){
       return (T)Proxy.newProxyInstance(this.getClass().getClassLoader(),new Class[]{clazz},new WDTMapperProxy(sqlSession));
   }
   static class TestMapperXML{
       public static final String  namespace="com.gupaoedu.mybatis.newlife.TestMapper";
       public static final Map<String,String>methodSqlMapping =new HashMap<>();
       static  {

           methodSqlMapping.put("selectBYID","select * from book where id =%d");
       }


   }
}
